package com.leng.Controller;

import com.leng.entity.District;
import com.leng.service.DistrictService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import javax.annotation.Resource;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.List;

/**
 * @Author: 冷俊杰
 * @Description: TODO
 * @DateTime: 2022/8/2 10:40
 **/
@Controller
public class DistrictController {
    @Resource
    private DistrictService district;

    @GetMapping("/selectDI")
    public String selectDI(Model model){
        model.addAttribute("districts",district.listDistrict());
        return "add";
    }
}
